import request from '@/utils/request'

// 查询用量数据列表
export function getDosageList(query) {
  let baseUrl = '/datastatistics/terminalXbStatisticAnalysis/areaDosage?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize
  if(query.beginTime !=null && query.beginTime !=''){
    baseUrl += '&beginTime=' + query.beginTime
  }
  if(query.endTime !=null && query.endTime !=''){
    baseUrl += '&endTime=' + query.endTime
  }
  if(query.ldName !=null && query.ldName !=''){
    baseUrl += '&ldName=' + query.ldName
  }
  if(query.areaCode !=null && query.areaCode !=[]){
    baseUrl += '&areaCode=' + query.areaCode
  }
  return request({
    url: baseUrl,
    // url: '/datastatistics/terminalXbStatisticAnalysis/areaDosage',
    method: 'get',
    // params: query
  })
}
